package com.totem.admin.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.totem.base.mybatis.model.AbstractEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

@EqualsAndHashCode(onlyExplicitlyIncluded=true, callSuper = true)
@Data
@Builder
@TableName("t_fund_daily_end")
public class TFundDailyEnd extends AbstractEntity {
    @EqualsAndHashCode.Include
    @TableId(value="id", type= IdType.AUTO)
    private Long id;
    @TableField("customer_id")
    private Long customerId;
    @TableField("cut_off_day")
    private String cutOffDay;
    @TableField("invest")
    @Schema(description="昨日投入=前一日投入+昨日投入-昨日提取+前一日收益")
    private BigDecimal invest;
    @TableField("earnings")
    @Schema(description="昨日收益=昨日投入*(1+日收益率)")
    private BigDecimal earnings;
    @Schema(description="昨日累计收益=前一日收益+昨日收益")
    private BigDecimal accEarnings;
    @TableField("remark")
    private String remark;
}
